<template>
  <div class="indexTitle-box">
    <div class="title">
      {{ title }}
    </div>
    <span class="more">更多</span>
  </div>
</template>

<script>
export default {
  props: ["title"],
  data() {},
  created() {
    console.log(this.title);
  },
};
</script>

<style>
.indexTitle-box {
  position: relative;
  height: 32px;
  background: #dcc8b0;
  line-height: 32px;
  box-sizing: border-box;
  margin-top: 20px;
}
.indexTitle-box .title {
  position: absolute;
  top: -30px;
  display: inline-block;
  box-sizing: border-box;
  width: 180px;
  height: 41px;
  line-height: 20px;
  background-color: #bb2d2d;
  border-top-right-radius: 10px;
  font-weight: 500;
}
.indexTitle-box .more {
  position: absolute;
  top: 50%;
  right: 10px;
  height: 32px;
  transform: translateY(-50%);
  cursor: pointer;
}
@media screen and (max-width:760px) {
    .indexTitle-box .title{
        width: 120px;
        font-size: 18px;
    }
}
</style>